// pages/exchangePages/exchangeOrders/exchangeOrders.js
Page({
  data: {
    tab_page: 0,
    tabArr: [{
        title: '待使用',
        type: '1'
      },
      {
        title: '已完成',
        type: '2'
      }
    ],
    itemArr: [{
        title: '有间咖啡馆(昆明店)',
        status: '待使用',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '待使用',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '待使用',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '待使用',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '待使用',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '待使用',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '已完成',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '已完成',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '已完成',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '已完成',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
      {
        title: '有间咖啡馆(昆明店)',
        status: '已完成',
        // timeout: '17小时04分',
        createData: '2021-05-20',
        createTime: '14:20:03',
        goodArr: [{
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '1',
          sku_unit: '件',
          price: '2000'
        }, {
          url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
          title: '燕京 精品鲜啤500ml*12瓶 666666',
          desc: '规格规格规格规格',
          sku: '102',
          count: '2',
          sku_unit: '件',
          price: '2000'
        }, ]
      },
    ]
  },

  pageChange(e) {
    //切换tab页的事件，如果服务器对订单有分类，可以利用这个进行申请
    console.log(e.detail)
  },

  onLoad: function (options) {
    this.setData({
      navHeight: getApp().globalData.navHeight,
      hoverHeight: getApp().globalData.windowHeight - getApp().globalData.navHeight,
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})